#include <cstdio>

int mabs( int x )
{
    if ( x < 0 )
        return -x;
    return x;
}

int main( )
{
    int n, m, sg, i, a, b;
    while ( scanf("%d%d", &n, &m) != EOF )
    {
        sg = 0;
        for ( i = 0; i < n; i++ )
        {
            scanf("%d%d", &a, &b);
            sg ^= mabs( a - b ) - 1;
        }
        if ( sg )
            puts("I WIN!");
        else
            puts("BAD LUCK!");
    }
    return 0;
}
